<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jQuery.js"></script>
</head>
<body>
    <div>你好</div>
    <input type="text" value="请输入内容">
    <script>
        //1.设置元素内容 html()
        console.log($("div").html());  //你好
        //$("div").html(123); //123
        
        //2.获取设置元素文本内容
        console.log($("div").text());  //你好
        //$("div").text("123"); //123

        //3.获取设置表单值 val()
        console.log($("input").val());  //请输入内容
        //$("input").val("234")
    </script>
</body>
</html>